<html>
<body>
<?php
$data = array();
if ( $_FILES['file']['tmp_name'] )
{
	
	$dom = DOMDocument::load( $_FILES['file']['tmp_name'] );
	$rows = $dom->getElementsByTagName( 'Row' );
	foreach ($rows as $row)
	{
		$cells = $row->getElementsByTagName( 'Cell' );
		$datarow = array();
		foreach ($cells as $cell)
		{
			$datarow []= $cell->nodeValue;
		}
		$data []= $datarow;
			
	}
}
?>
<table><?php foreach( $data as $row ) { ?>
<tr>
<?php foreach( $row as $item ) { ?>
<td>
<?php echo( $item ); ?></td>
<?php } ?>
</tr>
<?php } ?>
</table>
</body>
</html>
